package com.woniuxy.hotel;

import com.woniuxy.common.Result;
import com.woniuxy.hotel.form.IncomeAccountForm;
import com.woniuxy.hotel.form.SpendingAccountForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "finance",contextId = "HotelFinance")
public interface PlatformRecordsAPI {
    //平台流水（查询所有收入流水 status为0）
    //平台流水（查询所有支出流水 status为1）
    @GetMapping("/finance/account")
    public Result account( @RequestParam("status") Integer status,@RequestParam("time") String time);


    //生成收入流水
    @PostMapping("/finance/addIncomeAccount")
    public Result addIncomeAccount(@RequestBody IncomeAccountForm incomeAccountForm);

    //生成支出流水（给商家打账）
    @PostMapping("/finance/addSpendingAccount")
    public Result addSpendingAccount();


}
